From: Florian Müllner Date: Fri, 24 Jan 2014 22:05:46 +0000 (+0100) Subject: overview: Fix DESKTOP clone position X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2859 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b97f3a9ecf52183e86506af622a08eaa7e3846bb;p=gnome-shell.git overview: Fix DESKTOP clone position The DESKTOP window might not be located at (0,0), in particular on multi-monitor setups. While we already consider this by setting the clone's position, we then stuff the clone into a container which ignores it - meh ... https://bugzilla.gnome.org/show_bug.cgi?id=723306 --- diff --git a/js/ui/overview.js b/js/ui/overview.js index f4ea362a3..061175dd3 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -131,7 +131,7 @@ const Overview = new Lang.Class({ Main.layoutManager.overviewGroup.add_child(this._backgroundGroup); this._bgManagers = []; - this._desktopFade = new St.Bin(); + this._desktopFade = new St.Widget(); Main.layoutManager.overviewGroup.add_child(this._desktopFade); this._activationTime = 0; @@ -493,8 +493,8 @@ const Overview = new Lang.Class({ }, fadeOutDesktop: function() { - if (!this._desktopFade.child) - this._desktopFade.child = this._getDesktopClone(); + if (!this._desktopFade.get_n_children()) + this._desktopFade.add_child(this._getDesktopClone()); this._desktopFade.opacity = 255; this._desktopFade.show();